package com.mes.basicdata.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.mes.basicdata.dao.iface.ICalendarDao;
import com.mes.basicdata.domain.Calendar;
import com.mes.common.dao.BasicDao;

@Repository
public class CalendarDao extends BasicDao<Calendar> implements ICalendarDao{

	@Override
	public List<Calendar> getBaseCalendar(Map<String, Object> params) {
		String hql = "from Calendar where isBase = true and deptUid = :deptUid";
		
		return this.query(hql, params);
	}
}
